# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=py3-argon2-cffi
pkgver=20.1.0
pkgrel=0
pkgdesc="The secure Argon2 password hashing algorithm"
url="https://argon2-cffi.readthedocs.io/en/stable/"
arch="all !s390x" # Fails to build
license="MIT"
depends="python3"
makedepends="argon2-dev python3-dev py3-setuptools libffi-dev py3-wheel"
checkdepends="py3-pytest py3-hypothesis"
source="https://pypi.io/packages/source/a/argon2-cffi/argon2-cffi-$pkgver.tar.gz"
builddir="$srcdir/argon2-cffi-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="d1d798e3e51ed67c4f523a66081fea99479ee986b5cfc36b250954e757b9846625681445447f9347519d9988f8a2ace2e3c8ce5817c5c6b4767819cf56ee0af2  argon2-cffi-20.1.0.tar.gz"
